
package com.hc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hc.dao.INodesDao;
import com.hc.domain.Nodes;
import com.hc.service.INodesService;
@Service("nodesService")
public class NodesServiceImpl implements INodesService {
	@Resource
	private INodesDao nodesDao;

	@Override
	public List<Nodes> getNodesByAdminId(int id) {
		return nodesDao.getNodesByAdminId(id);
		
	}
	@Override
	public List<Nodes> getNodesByAdminIdAndParentId(int adminId, int praentId) {
		return nodesDao.getNodesByAdminIdAndParentId(adminId, praentId);
		
	}

}

